package cn.iocoder.yudao.module.member.fans.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.business.basic.pojo.vo.UserSimpleVO;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.module.api.infrastructure.DictTypeConstants.BOOLEAN_STRING;

@Schema(description = "粉丝 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MemberFansRespVO {

    @Schema(description = "唯一编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("唯一编号")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("用户编号")
    private Long userId;

    private UserSimpleVO user;

    @Schema(description = "粉丝编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("粉丝编号")
    private Long fansUserId;

    private UserSimpleVO fansUser;

    @Schema(description = "是否朋友", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否朋友", converter = DictConvert.class)
    @DictFormat(BOOLEAN_STRING)
    private Boolean friend;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
